home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / pack / xpk25dev.lha / include / libraries / xpksub.i < prev   
Text File  |  1992-07-20  |  3KB  |  81 lines

  1.  
  2.     IFND    LIBRARIES_XPKSUB_I
  3. LIBRARIES_XPKSUB_I    SET    1
  4.  
  5.     IFND    EXEC_LIBRARIES_I
  6.     include "exec/libraries.i"
  7.     ENDC
  8.  
  9.     IFND    LIBRARIES_XPK_I
  10.     include "libraries/xpk.i"
  11.     ENDC
  12.  
  13.  
  14.  
  15. **************************************************************************
  16. *
  17. *        Sublibs return this structure to xpkmaster when asked nicely
  18. *
  19. *
  20.  
  21.  STRUCTURE XpkInfo,0
  22.     UWORD    xi_XpkInfoVersion ; /* Version number of this structure   */
  23.     UWORD    xi_LibVersion      ; /* The version of this sublibrary     */
  24.     UWORD    xi_MasterVersion  ; /* The required master lib version    */
  25.     UWORD    xi_ModesVersion    ; /* Longword align                     */
  26.     APTR    xi_Name        ; /* Brief name of the packer           */
  27.     APTR    xi_LongName    ; /* Full name of the packer            */
  28.     APTR    xi_Description    ; /* One line description of packer     */
  29.     LONG    xi_ID        ; /* ID the packer goes by (XPK format) */
  30.     LONG    xi_Flags    ; /* Defined below                      */
  31.     LONG    xi_MaxPkInChunk    ; /* Max input chunk size for packing   */
  32.     LONG    xi_MinPkInChunk    ; /* Min input chunk size for packing   */
  33.     LONG    xi_DefPkInChunk    ; /* Default packing chunk size         */
  34.     APTR    xi_PackMsg    ; /* Packing message, present tense     */
  35.     APTR    xi_UnpackMsg    ; /* Unpacking message, present tense   */
  36.     APTR    xi_PackedMsg    ; /* Packing message, past tense        */
  37.     APTR    xi_UnpackedMsg    ; /* Unpacking message, past tense      */
  38.     UWORD    xi_DefMode    ; /* Default mode number                */
  39.     UWORD    xi_Pad        ; /* for future use                     */
  40.     APTR    xi_Modes    ; /* Array of compression modes         */
  41.     STRUCT    xi_Reserved,6*4    ; /* Future expansion - set to zero     */
  42.     LABEL    xi_SIZEOF    ; /* Size of the *first* part only    */
  43.  
  44. * Defines for XpkInfo.Flags: see xpk.i, XPKIF_xxxxx
  45.  
  46.  
  47.  
  48. **************************************************************************
  49. *
  50. *                     The XpkSubParams structure
  51. *
  52. */
  53.  
  54.  STRUCTURE XpkSubParams,0
  55.     APTR    xsp_InBuf    ; /* The input data               */
  56.     ULONG    xsp_InLen    ; /* The number of bytes to pack  */
  57.     APTR    xsp_OutBuf    ; /* The output buffer            */
  58.     ULONG    xsp_OutBufLen    ; /* The length of the output buf */
  59.     ULONG    xsp_OutLen    ; /* Number of bytes written      */
  60.     ULONG    xsp_Flags    ; /* Flags for master/sub comm.   */
  61.     ULONG    xsp_Number    ; /* The number of this chunk     */
  62.     LONG    xsp_Mode    ; /* The packing mode to use      */
  63.     APTR    xsp_Password    ; /* The password to use          */
  64.     STRUCT    xsp_Arg,4*4    ; /* Reserved; don't use          */
  65.     STRUCT    xsp_Sub,4*4    ; /* Sublib private data          */
  66.     LABEL    xsp_SIZEOF
  67.  
  68. XSF_STEPDOWN    EQU    1    ; /* May reduce pack eff. to save mem   */
  69. XSF_PREVCHUNK    EQU    2    ; /* Previous chunk available on unpack */
  70.  
  71.  
  72.     LIBINIT
  73.     LIBDEF    _LVOXpksPackerInfo
  74.     LIBDEF    _LVOXpksPackChunk
  75.     LIBDEF    _LVOXpksPackFree
  76.     LIBDEF    _LVOXpksPackReset
  77.     LIBDEF    _LVOXpksUnpackChunk
  78.     LIBDEF    _LVOXpksUnpackFree
  79.  
  80.     ENDC
  81.